<?php
namespace zhtfrontend\models\forms;

use yii\base\Model;

class SettingDepositForm extends Model
{
    
	public $deposit;//定金金额
	public $penalty;//违约扣值
	public $number;//违约到课次数

	

	public function rules()
	{
		return [
			[['number'], 'integer'],
			[['deposit'], 'number'],
			[['penalty'], 'number','max'=>1,'min'=>0],
		];
	}

	public function attributeLabels()
	{
		return [
			'deposit'=>'定金金额',
			'penalty'=>'违约扣款比例',
			'number'=>'违约到课次数',
        ];
	}
	
}
